<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <title>top</title>
	<link rel="stylesheet" type="text/css" href="${pageContext.request.contextPath}/css/default.css" />
    <script type="text/javascript"  src="${pageContext.request.contextPath}/js/jquery-min.js"></script> 
    <script type="text/javascript"  src="${pageContext.request.contextPath}/js/common.js"></script>
    <script type="text/javascript"  src="${pageContext.request.contextPath}/plugin/msgbox/msgbox.js"></script>
    <script type="text/javascript"  src="${pageContext.request.contextPath}/jsp/project/project.js"></script>
    <script type="text/javascript"  src="${pageContext.request.contextPath}/plugin/calendar/Calendar.js"></script>
  </head>
  <body>
    <div id="menuListDiv" class="wspace" style="padding:0px;margin:0px;overflow:hidden;height:55px;">
		<div  class="menuBtn" style="width:78px;height:58px;float:left;" onclick="project()">
			<table id="aa" cellspacing="0" class="x-btn-over" onmouseover="this.className='x-btn-over'" onmouseout="this.className='x-btn'" title="项目管理">
				<tbody>
				<tr>
					<td class="x-btn-tl"><i>&#160;</i></td>
					<td class="x-btn-tc"></td>
					<td class="x-btn-tr"><i>&#160;</i></td>
				</tr>
				<tr>
					<td class="x-btn-ml"><i>&#160;</i></td>
					<td class="x-btn-mc">
						<img src="${pageContext.request.contextPath}/images/gmenu/session_manager.png" width="32" height="32"/>
						<p class="x-btn-text">项目管理</p>
					</td>
					<td class="x-btn-mr"><i>&#160;</i></td></tr>
				<tr>
					<td class="x-btn-bl"><i>&#160;</i></td>
					<td class="x-btn-bc"></td><td class="x-btn-br"><i>&#160;</i></td>
				</tr>
				</tbody>
			</table>
		</div>
	
		<div class="menuBtn" style="width:78px;height:58px;float:left;" onclick="labor()">
			<table id="bb" cellspacing="0" class="x-btn" onmouseover="this.className='x-btn-over'" onmouseout="this.className='x-btn'" title="工时管理">
				<tbody>
				<tr>
					<td class="x-btn-tl"><i>&#160;</i></td>
					<td class="x-btn-tc"></td>
					<td class="x-btn-tr"><i>&#160;</i></td>
				</tr>
				<tr>
					<td class="x-btn-ml"><i>&#160;</i></td>
					<td class="x-btn-mc">
						<img src="${pageContext.request.contextPath}/images/gmenu/alarm.png" width="32" height="32" style=""/>
						<p class="x-btn-text">工时管理</p>
					</td>
					<td class="x-btn-mr"><i>&#160;</i></td></tr>
				<tr>
					<td class="x-btn-bl"><i>&#160;</i></td>
					<td class="x-btn-bc"></td><td class="x-btn-br"><i>&#160;</i></td>
				</tr>
				</tbody>
			</table>
		</div>
	
	
		<div class="menuBtn" style="width:78px;height:58px;float:left;" onclick="doc()">
			<table id="cc" cellspacing="0" class="x-btn" onmouseover="this.className='x-btn-over'" onmouseout="this.className='x-btn'" title="查询">
				<tbody>
				<tr>
					<td class="x-btn-tl"><i>&#160;</i></td>
					<td class="x-btn-tc"></td>
					<td class="x-btn-tr"><i>&#160;</i></td>
				</tr>
				<tr>
					<td class="x-btn-ml"><i>&#160;</i></td>
					<td class="x-btn-mc">
						<img src="${pageContext.request.contextPath}/images/gmenu/doc.png" width="32" height="32" style=""/>
						<p class="x-btn-text">文档管理</p>
					</td>
					<td class="x-btn-mr"><i>&#160;</i></td></tr>
				<tr>
					<td class="x-btn-bl"><i>&#160;</i></td>
					<td class="x-btn-bc"></td><td class="x-btn-br"><i>&#160;</i></td>
				</tr>
				</tbody>
			</table>
		</div>
		<div class="menuBtn" style="width:78px;height:58px;float:left;" onclick="demo()">
			<table id="dd" cellspacing="0" class="x-btn" onmouseover="this.className='x-btn-over'" onmouseout="this.className='x-btn'">
				<tbody>
				<tr>
					<td class="x-btn-tl"><i>&#160;</i></td>
					<td class="x-btn-tc"></td>
					<td class="x-btn-tr"><i>&#160;</i></td>
				</tr>
				<tr>
					<td class="x-btn-ml"><i>&#160;</i></td>
					<td class="x-btn-mc">
						<img src="${pageContext.request.contextPath}/images/gmenu/product.png" width="32" height="32" style=""/>
						<p class="x-btn-text">产品及Demo机查询</p>
					</td>
					<td class="x-btn-mr"><i>&#160;</i></td></tr>
				<tr>
					<td class="x-btn-bl"><i>&#160;</i></td>
					<td class="x-btn-bc"></td><td class="x-btn-br"><i>&#160;</i></td>
				</tr>
				</tbody>
			</table>
		</div>
		<div class="menuBtn" style="width:78px;height:58px;float:left;" onclick="techNote()">
			<table id="ee" cellspacing="0" class="x-btn" onmouseover="this.className='x-btn-over'" onmouseout="this.className='x-btn'">
				<tbody>
				<tr>
					<td class="x-btn-tl"><i>&#160;</i></td>
					<td class="x-btn-tc"></td>
					<td class="x-btn-tr"><i>&#160;</i></td>
				</tr>
				<tr>
					<td class="x-btn-ml"><i>&#160;</i></td>
					<td class="x-btn-mc">
						<img src="${pageContext.request.contextPath}/images/gmenu/techNote.png" width="32" height="32" style=""/>
						<p class="x-btn-text">技术备忘录</p>
					</td>
					<td class="x-btn-mr"><i>&#160;</i></td></tr>
				<tr>
					<td class="x-btn-bl"><i>&#160;</i></td>
					<td class="x-btn-bc"></td><td class="x-btn-br"><i>&#160;</i></td>
				</tr>
				</tbody>
			</table>
		</div>
	
		<div class="menuBtn" style="width:78px;height:58px;float:left;" onclick="user()">
			<table id="ff" cellspacing="0" class="x-btn" onmouseover="this.className='x-btn-over'" onmouseout="this.className='x-btn'" title="查询">
				<tbody>
				<tr>
					<td class="x-btn-tl"><i>&#160;</i></td>
					<td class="x-btn-tc"></td>
					<td class="x-btn-tr"><i>&#160;</i></td>
				</tr>
				<tr>
					<td class="x-btn-ml"><i>&#160;</i></td>
					<td class="x-btn-mc">
						<img src="${pageContext.request.contextPath}/images/gmenu/users.png" width="32" height="32" style=""/>
						<p class="x-btn-text">用户管理</p>
					</td>
					<td class="x-btn-mr"><i>&#160;</i></td></tr>
				<tr>
					<td class="x-btn-bl"><i>&#160;</i></td>
					<td class="x-btn-bc"></td><td class="x-btn-br"><i>&#160;</i></td>
				</tr>
				</tbody>
			</table>
		</div>
	
		<div style="float:right;margin:35px">
		   <span>
		       <%-- <%
				  if(hours>=6 && hours<9){
				      out.println(realName+",早上好！");
				  }else if(hours>=9 && hours<12){
				      out.println(realName+",上午好！");
				  }else if(hours>=12 && hours<14){
				      out.println(realName+",中午好！");
				  }else if(hours>=14 && hours<18){
				      out.println(realName+",下午好！");
				  }else if(hours>=18 && hours<19){
				      out.println(realName+",傍晚好！");
				  }else{
				     out.println(realName+",晚上好！");
				  }
			 %> --%>
		   </span>
		   <span>
		   		您好，${sessionScope.session_user.username }
		       <img src="${pageContext.request.contextPath}/images/common/delete.png" width="16" height="16" /><a href="exit.action" id="exitSystem" title="退出" onmouseover="changeColor('0')" onmouseout="changeColor('1')" style="font-size:12px;color:#996633;">退出</a>     
		  </span>
		
		 </div>
	</div>
	<script type="text/javascript">
  	function project(){
     var cc=document.getElementById('cc');
     var bb=document.getElementById('bb');
     var dd=document.getElementById('dd');
     var ee=document.getElementById('ee');
     var ff=document.getElementById('ff'); 
     cc.className='x-btn';
     bb.className='x-btn';
     dd.className='x-btn';
     ee.className='x-btn';
     ff.className='x-btn';
     document.getElementById('aa').onmouseout=function(){this.className='x-btn-over';};
     document.getElementById('bb').onmouseout=function(){this.className='x-btn';};
     document.getElementById('cc').onmouseout=function(){this.className='x-btn';};
     document.getElementById('dd').onmouseout=function(){this.className='x-btn';};
     document.getElementById('ee').onmouseout=function(){this.className='x-btn';};
     document.getElementById('ff').onmouseout=function(){this.className='x-btn';};
     window.parent.document.getElementById("mainFrame").src="${pageContext.request.contextPath}/jsp/project/project.jsp";
     AjaxUtil.request({
			url : "findAllProject.action",
			params : {},
			success : function(responseText){
				//RefreshhProject.refresh();
			},
			failure : function(){
				//PigossMsg.alert("添加失败!");
			}
		});
   }
   function labor(){
    var aa=document.getElementById('aa');
    var cc=document.getElementById('cc');
    var dd=document.getElementById('dd');
    var ee=document.getElementById('ee');
    var ff=document.getElementById('ff');  
    aa.className='x-btn';
    cc.className='x-btn';
    dd.className='x-btn';
    ee.className='x-btn';
    ff.className='x-btn';
    document.getElementById('bb').onmouseout=function(){this.className='x-btn-over';};
    document.getElementById('aa').onmouseout=function(){this.className='x-btn';};
    document.getElementById('cc').onmouseout=function(){this.className='x-btn';};
    document.getElementById('dd').onmouseout=function(){this.className='x-btn';};
    document.getElementById('ee').onmouseout=function(){this.className='x-btn';};
    document.getElementById('ff').onmouseout=function(){this.className='x-btn';};
    	AjaxUtil.request({
			url : "findAllLabor.action",
			params : {},
			success : function(responseText){
    		window.parent.document.getElementById("mainFrame").src="${pageContext.request.contextPath}/jsp/labor/labor.jsp";
			},
			failure : function(){
				//PigossMsg.alert("添加失败!");
			}
		});
   }
   function doc(){
    var aa=document.getElementById('aa');
    var bb=document.getElementById('bb');
    var dd=document.getElementById('dd');
    var ee=document.getElementById('ee');
    var ff=document.getElementById('ff');
    aa.className='x-btn';
    bb.className='x-btn';
    dd.className='x-btn';
    ee.className='x-btn';
    ff.className='x-btn';
    document.getElementById('cc').onmouseout=function(){this.className='x-btn-over';};
    document.getElementById('bb').onmouseout=function(){this.className='x-btn';};
    document.getElementById('aa').onmouseout=function(){this.className='x-btn';};
    document.getElementById('dd').onmouseout=function(){this.className='x-btn';};
    document.getElementById('ee').onmouseout=function(){this.className='x-btn';};
    document.getElementById('ff').onmouseout=function(){this.className='x-btn';};
    	AjaxUtil.request({
			url : "findAllDoc.action",
			params : {},
			success : function(responseText){
    		window.parent.document.getElementById("mainFrame").src="${pageContext.request.contextPath}/jsp/doc/doc.jsp";
			},
			failure : function(){
				//PigossMsg.alert("添加失败!");
			}
		});
    
   }
   
   function demo(){
    var aa=document.getElementById('aa');
    var bb=document.getElementById('bb');
    var cc=document.getElementById('cc');
    var ee=document.getElementById('ee');
    var ff=document.getElementById('ff');
    aa.className='x-btn';
    bb.className='x-btn';
    cc.className='x-btn';
    ee.className='x-btn';
    ff.className='x-btn';
    document.getElementById('dd').onmouseout=function(){this.className='x-btn-over';};
    document.getElementById('bb').onmouseout=function(){this.className='x-btn';};
    document.getElementById('aa').onmouseout=function(){this.className='x-btn';};
    document.getElementById('cc').onmouseout=function(){this.className='x-btn';};
    document.getElementById('ee').onmouseout=function(){this.className='x-btn';};
    document.getElementById('ff').onmouseout=function(){this.className='x-btn';};
    	AjaxUtil.request({
			url : "findAllDemo.action",
			params : {},
			success : function(responseText){
   				window.parent.document.getElementById("mainFrame").src="${pageContext.request.contextPath}/jsp/demo/demo.jsp";
			}, 
			failure : function(){
				//PigossMsg.alert("添加失败!");
			}
		});
    //window.parent.document.getElementById("mainFrame").src="${pageContext.request.contextPath}/jsp/demo/demo.jsp";
   }
   function techNote(){
    var aa=document.getElementById('aa');
    var bb=document.getElementById('bb');
    var cc=document.getElementById('cc');
    var dd=document.getElementById('dd');
    var ff=document.getElementById('ff');
    aa.className='x-btn';
    bb.className='x-btn';
    cc.className='x-btn';
    dd.className='x-btn';
    ff.className='x-btn';
    document.getElementById('ee').onmouseout=function(){this.className='x-btn-over';};
    document.getElementById('bb').onmouseout=function(){this.className='x-btn';};
    document.getElementById('aa').onmouseout=function(){this.className='x-btn';};
    document.getElementById('cc').onmouseout=function(){this.className='x-btn';};
    document.getElementById('dd').onmouseout=function(){this.className='x-btn';};
    document.getElementById('ff').onmouseout=function(){this.className='x-btn';};
    	AjaxUtil.request({
			url : "findAllTechNote.action",
			params : {},
			success : function(responseText){
		    window.parent.document.getElementById("mainFrame").src="${pageContext.request.contextPath}/jsp/techNote/techNote.jsp";
			},
			failure : function(){
				//PigossMsg.alert("添加失败!");
			}
		});
   }
   
   function user(){
    var aa=document.getElementById('aa');
    var bb=document.getElementById('bb');
    var cc=document.getElementById('cc');
    var dd=document.getElementById('dd');
    var ff=document.getElementById('ff');
    aa.className='x-btn';
    bb.className='x-btn';
    cc.className='x-btn';
    dd.className='x-btn';
    ff.className='x-btn';
    document.getElementById('ff').onmouseout=function(){this.className='x-btn-over';};
    document.getElementById('bb').onmouseout=function(){this.className='x-btn';};
    document.getElementById('aa').onmouseout=function(){this.className='x-btn';};
    document.getElementById('cc').onmouseout=function(){this.className='x-btn';};
    document.getElementById('dd').onmouseout=function(){this.className='x-btn';};
    document.getElementById('ee').onmouseout=function(){this.className='x-btn';};
    	AjaxUtil.request({
			url : "findAllUser.action",
			params : {},
			success : function(responseText){
    		window.parent.document.getElementById("mainFrame").src="${pageContext.request.contextPath}/jsp/user/userManager.jsp";
			},
			failure : function(){
				//PigossMsg.alert("添加失败!");
			}
		});
    
   }
   function changeColor(num){
        var obj = document.getElementById('exitSystem');
        if(num == '0'){
              obj.style.color = '#c8d7e3';
        }else{
             obj.style.color = '#996633';
        }
   }
  
  </script>
  </body>
</html>
